package com.a.server.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author KimWu
 * @date 2020/6/2 9:01
 * @Description ：
 */
@FeignClient(value = "kim-b")
public interface BserverFeignService {

    /**
     * qps限流场景
     * @return
     */
    @RequestMapping(value = "/b/flowControl", method = RequestMethod.POST)
    String flowControl();

    /**
     * 调用超时场景
     * @return
     */
    @RequestMapping(value = "/b/timeout", method = RequestMethod.POST)
    String timeout();

    /**
     * 异常比例场景
     * @return
     */
    @RequestMapping(value = "/b/abnormalProportion", method = RequestMethod.POST)
    String abnormalProportion();

    /**
     * 异常数场景
     * @return
     */
    @RequestMapping(value = "/b/abnormalNumber", method = RequestMethod.POST)
    String abnormalNumber();

    /**
     * 没有加任何注解的controller
     * @return
     */
    @RequestMapping(value = "/b/noMean", method = RequestMethod.POST)
    String noMean();

}
